﻿<%@ Page Title="" Language="C#" MasterPageFile="ReconSite.Master" AutoEventWireup="true" CodeBehind="InvoiceAmendment.aspx.cs" Inherits="Recon.Portal.WebUI.InvoiceAmendment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyHolder" runat="server">
    <div class="formDiv" style="width:72%">
    <h2 class="formTitle">Uploaded Invoices:</h2>
       
        <div>
            <table>
                <tr>
                    <td align="right">
                        From:
                    </td>
                    <td>
                        <asp:TextBox ID="txtFromDate" runat="server" MaxLength="50" class="datepick"></asp:TextBox>   
                         
                    </td>

                    <td align="right">
                        To:
                    </td>
                    <td>
                        <asp:TextBox ID="txtToDate" runat="server" MaxLength="50" class="datepick"></asp:TextBox>   
                         
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:RequiredFieldValidator ID="reqRefNoChqNo" runat="server" 
                             ErrorMessage="Please select date" CssClass="formError"
                            ControlToValidate="txtFromDate" SetFocusOnError="True" 
                                ></asp:RequiredFieldValidator> 
                    </td>
                    <td></td>
                    <td>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                             ErrorMessage="Please select date" CssClass="formError"
                            ControlToValidate="txtToDate" SetFocusOnError="True" 
                                ></asp:RequiredFieldValidator> 
                    </td>
                </tr>
                <tr>
                    <td align="right">
                       Select Remitter :
                    </td>
                    <td>
                         <asp:DropDownList ID="ddlRemitter" runat="server" AutoPostBack="true" Width="300"
                            OnSelectedIndexChanged="ddlRemitter_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>

                    <td align="right">
                      
                    </td>
                    <td>
                         <asp:Button ID="btnDeleteAll" runat="server" Text="Delete Selected" OnClick="btnDeleteAll_Click" />
                     </td>
                </tr>
            </table>
        </div>
      <%--  HeaderStyle-BackColor="#222222" HeaderStyle-ForeColor="#6f788f" ForeColor="#333333"--%>
    <div style="height: 380px; width: 600px; overflow: auto;">
            <asp:GridView ID="grdInvoice" runat="server" AutoGenerateColumns="False" Width="600"
                HeaderStyle-Font-Bold="false" OnRowDataBound="grdInvoice_RowDataBound">
                <EmptyDataTemplate>
                    <asp:Label ID="lblNoRows" runat="server" Text="There are no Invoices." />
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField>
                       <%-- <HeaderTemplate>
                            <input id="SelectAllCheckBox" type="checkbox" name="SelectAllCheckBox" style="azimuth: left; left: 0px;" onclick="javascript: SelectAllInvoice(this)">
                        </HeaderTemplate>--%>
                        <ItemTemplate>
                            <asp:Literal ID="ltlInvoiceUniqueID" runat="server" Text='<%# Eval("InvoiceID") %>' Visible="false" />
                            <input id="chkSelect" type="checkbox" name="chk" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Invoice No" DataField="InvoiceNumber" HeaderStyle-Font-Bold="false" />
                    <asp:BoundField HeaderText="Date" DataField="InvoiceDate" HeaderStyle-Font-Bold="false" />
                    <asp:BoundField HeaderText="Remitter" DataField="RemitterID" HeaderStyle-Font-Bold="false" />
                    <asp:BoundField HeaderText="Amount" DataField="Amount" HeaderStyle-Font-Bold="false" />
                    
                    <asp:BoundField HeaderText="PO Ref" DataField="PORef" HeaderStyle-Font-Bold="false" />
                     <asp:TemplateField HeaderText="Edit">
                        <ItemTemplate>
                            <asp:ImageButton ID="lnkEdit" runat="server" ImageUrl="../Images/edit.jpg" OnClick="lnkEdit_Click" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Delete?">
                        <ItemTemplate>
                           <span onclick="return confirm('Are you sure to delete?')">
                                <asp:ImageButton ID="lnkDelete" runat="server" ImageUrl="../Images/delete.jpg" ForeColor="Red" OnClick="lnkDelete_Click" />
                           </span>
                        </ItemTemplate>
                    </asp:TemplateField>

                </Columns>
                <%--<HeaderStyle BackColor="silver" Font-Bold="false" ForeColor="#6f788f" />--%>
                <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px" Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
            </asp:GridView>
        </div>
        </div>
</asp:Content>
